package one.one.eleven;

public class BooleanMatrix {

	static void printBooleanMatrix(boolean[][] b) {
		if (b == null) {
			return;
		}
		for (int i = 0; i < b.length; i++) {
			if (b[i] != null && b[i].length > 0) {
				for (int j = 0; j < b[i].length; j++) {
					System.out.println("row " + i + ", column " + j + ":" + (b[i][j] ? "*" : ""));
				}
			}
		}
	}

	public static void main(String[] args) {
		boolean[][] a = new boolean[3][];
		a[1] = new boolean[2];
		a[1][0] = true;
		a[1][1] = false;
		a[2] = new boolean[3];
		a[2][0] = false;
		a[2][1] = false;
		a[2][2] = false;
		
		printBooleanMatrix(a);
	}

}
